<?php

namespace app\admin\validate;

use think\Validate;

class Member extends Validate {

        protected $rule = [
            'username' => 'unique:member|alphaNum',
        ];
        protected $message = [
            'username.unique' => '用户名已被注册',
            'username.alphaNum' => '用户名必须是英文字符或数字'
        ];
        protected $scene = [
            'edit' => ['username'],
            'add'  => ['username']
        ];

}
